//
//  RealTipsPopView.m
//  markmap
//
//  Created by 甘世清 on 2024/6/12.
//

#import "RealTipsPopView.h"

@implementation RealTipsPopView

- (void)SQ_UIViewForSelfView{
    self.backgroundColor = UIColor.whiteColor;
    self.layer.cornerRadius = 8;
    self.layer.masksToBounds = YES;
    HeaderView * topView = [[HeaderView alloc]init];
    topView.image = @"认证top";
    topView.text = SQNSLocalString(@"完善真人认证");
    topView.font = FONT_MEDIUM(17);
    topView.colorString = @"#333333";
    [self addSubview:topView];
    [topView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.top.right.equalTo(self);
            make.height.mas_equalTo(56);
    }];
    UILabel * message = [[UILabel alloc]init];
    message.text = SQNSLocalString(@"尊敬的用户：\n您好！在进行查看他人信息时，为保障信息的真实性和您的权益，请确保您已完成了真人认证。完成认证不仅能提高我们平台的信任度，更能确保您在享受服务时得到更加安全、可靠的信息交互体验。请按照指引完成认证流程，共同维护一个真实、健康的信息交流环境。感谢您的理解与配合！");
    message.numberOfLines = 0;
    message.textColor = SQColor666666;
    message.font=FONT_REGULAR(15);
    [self addSubview:message];
    [message mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(22);
            make.right.equalTo(self.mas_right).offset(-22);
            make.top.equalTo(self).offset(75);
    }];
    message.characterSpace = 2;
    message.lineSpace = 8;
    [message getLableSizeWithMaxWidth:SCREEN_WIDETH-104];
    
    [self addSubview:self.leftBtn];
    [self addSubview:self.rightBtn];
    [self.leftBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.mas_equalTo(120);
        make.height.mas_equalTo(44);
        make.bottom.equalTo(self.mas_bottom).offset(-45);
        make.left.equalTo(self).offset(22);
    }];
    [self.rightBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.mas_equalTo(120);
        make.height.mas_equalTo(44);
        make.bottom.equalTo(self.mas_bottom).offset(-45);
        make.right.equalTo(self.mas_right).offset(-22);
    }];
}
- (SQCustomButton *)leftBtn{
    if (!_leftBtn) {
        _leftBtn = [[SQCustomButton alloc]initType:SQCustomButtonTopImageType imageSize:CGSizeMake(0, 0) midmargin:0];
        _leftBtn.text = SQNSLocalString(@"退出");
        _leftBtn.font = FONT_MEDIUM(15);
        _leftBtn.textColor = SQColor333333;
        _leftBtn.backgroundColor = SQColor(@"#D8D8D8");
        _leftBtn.layer.cornerRadius = 8;
       
    }
    return _leftBtn;
}
- (SQCustomButton *)rightBtn{
    if (!_rightBtn) {
        _rightBtn = [[SQCustomButton alloc]initType:SQCustomButtonTopImageType imageSize:CGSizeMake(0, 0) midmargin:0];
        _rightBtn.text = SQNSLocalString(@"去认证");
        _rightBtn.font = FONT_MEDIUM(15);
        _rightBtn.backgroundColor = SQColor(@"#000000");
        _rightBtn.layer.cornerRadius = 8;
        _rightBtn.textColor = UIColor.whiteColor;
    }
    return _rightBtn;
}

@end
